package org.suren.littlebird.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import org.suren.littlebird.Activator;

/**
 * http://surenpi.com
 * @author suren
 * @since 2015-2-2
 */
public class PreferenceInitializer extends AbstractPreferenceInitializer
{

	public void initializeDefaultPreferences()
	{
		IPreferenceStore store = Activator.getDefault().getPreferenceStore();
		store.setDefault(PreferenceConstants.P_OSGI_PORT, 9789);
		store.setDefault(PreferenceConstants.P_OSGI_FILTER, "com");

		store.setDefault(PreferenceConstants.P_BUNDLE_DIR, "/opt/gridview/bundles/application");
		store.setDefault(PreferenceConstants.P_BUNDLE_WEB_RUNDIR,
				"/opt/gridview/runner/web");

		store.setDefault(PreferenceConstants.P_SSH_PORT, 22);
		store.setDefault(PreferenceConstants.P_SSH_USER, "root");
		store.setDefault(PreferenceConstants.P_SSH_PASSWD, "");

		store.setDefault(PreferenceConstants.P_LOGGER_BRIDGE_PORT, 7896);
		store.setDefault(PreferenceConstants.P_LOGGER_LAYOUT, "%d{yyyy-MM-dd HH:mm:ss} [%p]-[ %l] %m %n");
		store.setDefault(PreferenceConstants.P_LOGGER_NO_BRIDGE_HIDDEN, true);
		store.setDefault(PreferenceConstants.P_LOGGER_FILTER, "");
	}

}
